package com.huawei.fastengine.fastview.download.install;

import android.content.pm.IPackageInstallObserver.Stub;
import android.os.Build.VERSION;
import android.os.RemoteException;
import com.huawei.fastengine.fastview.download.utils.log.FastViewLogUtils;

public class PackageInstallObserver extends Stub {
    private static final String TAG = "PackageInstallObserver";
    private ManagerTask task;

    public PackageInstallObserver(ManagerTask managerTask) {
        this.task = managerTask;
    }

    public void packageInstalled(String str, int i) throws RemoteException {
        boolean z = false;
        if (VERSION.SDK_INT < 24 && -3 == i) {
            z = true;
        }
        FastViewLogUtils.i(PackageManagerConstants.TAG, "PackageInstallObserver installPkg:" + this.task.getPackageName() + " package install callback:packageName:" + str + ",returnCode:" + i + ",changePath:" + z);
    }
}
